package com.zxc.oj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxc.oj.model.enums.QuestionSubmitLanguageEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 题目提交
 * </p>
 *
 * @author zxc
 * @since 2024-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("question_submit")
//@ApiModel(value="QuestionSubmit对象", description="题目提交")
public class QuestionSubmit implements Serializable {

    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


//    @ApiModelProperty(value = "编程语言")
    private QuestionSubmitLanguageEnum language;

//    @ApiModelProperty(value = "用户代码")
    private String code;

//    @ApiModelProperty(value = "判题信息（json对象）")
    private String judgeInfo;

//    @ApiModelProperty(value = "状态：0-待判题，1-判题中，2-成功，3-失败")
    private Integer status;

//    @ApiModelProperty(value = "题目 id")
    private Long questionId;

//    @ApiModelProperty(value = "创建用户 id")
    private Long userId;

//    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

//    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

//    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;


}
